package com.itheima.date;

import java.util.Date;

public class Demo03 {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);
      /*  date.setTime(35413846846384138L);
        System.out.println(date);*/
        int year = date.getYear();
        System.out.println(year);
        System.out.println(date.getMonth());

        System.out.println(date.getDate());
        System.out.println(date.getHours());
        System.out.println(date.getMinutes());
        System.out.println(date.getSeconds());
        date.setMonth(1);
        date.setYear(123);
        System.out.println(date);

    }
}
